<template>
  <view class="paySuccess">
    <image src="@/static/nodata/paysuccess.png" mode="scaleToFill" />
    <view class="title">{{ id==1?'支付成功':'兑换成功' }}</view>
    <view class="miaoshu">可以在个人中心‘我的订单’查看</view>
    <view class="btn" @click="submite">查看订单</view>
  </view>
</template>

<script setup lang="ts">
import { menuJump } from '@/utils/tools';
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue';
const id = ref(0)
onLoad((options:any) => {
  id.value = options.id
})
function submite(){
  // 跳转订单列表
  uni.redirectTo({
    url: '/pages/orderList/orderList'
  })
}
</script>

<style scoped lang="scss">
.paySuccess{
  padding: 30rpx;text-align:center;
  image{
    width: 356rpx;
    height: 356rpx;
  }
  .title{
    font-size: 30rpx;
    color: #333;
    font-weight: bold;
    margin-top: 30rpx;
  }
  .miaoshu{
    font-size: 26rpx;
    color: #969799;
    margin-top: 10rpx;
  }
  .btn{
    width: 300rpx;
    height: 80rpx;
    line-height: 80rpx;
    text-align: center;
    font-size: 30rpx;
    color: #fff;
    background: #FE7431;
    border-radius: 40rpx;
    margin: 100rpx auto 0;
  }
}
</style>